package com.yueya.im.business;

import com.yueya.auth.config.AuthConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = {"com.yueya"},exclude = {DataSourceAutoConfiguration.class})
@EnableTransactionManagement
@Import(AuthConfig.class)
@EnableCaching
public class BusApplication {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplicationBuilder().sources(BusApplication.class)
                .build();
        application.run(args);
    }

}
